//==============================================================================
// SDL Tutorial 8
//==============================================================================
#ifndef _CAPP_H_
    #define _CAPP_H_

#include <SDL/SDL.h>

#include "Define.h"

#include "CFPS.h"

#include "CArea.h"
#include "CCamera.h"
#include "CObjetoAnimado.h"
#include "CEvent.h"
#include "CSurface.h"
#include "CZombieVerde.h"
#include "CZombieRojo.h"
#include "CZombieAzul.h"
#include "CPlayer.h"
#include "CBomba.h"
#include "CPlanta.h"
#include <exception>
#include <iostream>
//==============================================================================
class CApp : public CEvent {
    private:
        bool            Running;

        SDL_Surface*    Surf_Display;
        CPlayer			Player;
        CZombieVerde	ZombieVerde1;
        CZombieRojo	    ZombieRojo1;
        CZombieAzul	    ZombieAzul1;
        CPlanta         Planta1;
       // Bomba     BombaMaestra;
       // CBalaPlanta balaplanta1;

    public:
        CApp();
        void RevivirJugador() ;
        int OnExecute();

    public:
        bool OnInit();
        void CargarPlantas();
        void OnEvent(SDL_Event* Event);

        	void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);

        	void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);

            void OnExit();

        void OnLoop();

        void OnRender();

        void OnCleanup();
};

//==============================================================================

#endif
